FROM centos

LABEL org.label-schema.schema-version="1.0" \
    org.label-schema.name="Demo Base Image" \
    org.label-schema.vendor="Demo" \
    org.label-schema.license="GPLv2" \
    org.label-schema.build-date="20181006"


VOLUME ["/data"]
WORKDIR /data

# 安装vim ifconfig命令要的工具
RUN yum -y install vim
RUN yum -y install net-tools

# 拷贝当前目录文件到容器
COPY Windows.md /data/Windows.md

# JDK8
ADD jdk-8u181-linux-x64.tar.gz /usr/local/
ENV JAVA_HOME=/usr/local/jdk1.8.0_181
ENV CLASSPATH=${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
ENV PATH=$PATH:${JAVA_HOME}/bin



EXPOSE 80

CMD /bin/bash